#!/bin/bash

echo "Upload nodemcu firmware to ESP8266..." 
echo "Don't forget set GPIO0 to LOW."

echo "writing ..."
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ../nodemcu/nodemcu-firmware/0.9.2/512K-flash/nodemcu_512k.bin

echo "Finished."
echo "Don't forget unset GPIO0 to HIGH."

